package com.xnyzc.lhy.common.penum.order;

/**
 * @Author: huxuekuo
 * @Date: 2019-08-19 21:36
 * @Description:
 */
public enum ETabType {
    ZFJC(0, "ZFJC"), GRGW(1, "GRGW"), BMGW(2, "BMGW"), SPGW(3, "SPGW");

    private int type;
    private String value;

    ETabType(int type, String value) {
        this.type = type;
        this.value = value;
    }

    public static int getType(String orderId) {
        ETabType[] values = values();
        for (ETabType eTabType : values) {
            if (orderId.contains(eTabType.value)) {
                return eTabType.type;
            }
        }
        return 0;
    }
}
